package cn.fotoit.product.system.repository;

import cn.fotoit.product.system.entity.UserLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface UserLogRepository extends JpaRepository<UserLog, Integer> {


    Page<UserLog> findByType(Integer type, Pageable pageable);

    Page<UserLog> findByUserId(Integer userId, Pageable pageable);

    Page<UserLog> findByUserIdAndType(Integer userId, Integer type, Pageable pageable);
}